package com.nuoniu.sibanyun.entity.dto;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.HashMap;
import java.util.List;

/**
 * @ClassName DynamicDto
 * @Description TODO
 * @Authpr baiqiang
 * @Date 2020/6/23 14:04
 **/
@Data
@ApiModel("客户动态条件DTO")
public class DynamicDto {

    @ApiModelProperty(value = "分页查询（必填：current、size必传）")
    private Page page = new Page();

    @ApiModelProperty(value = "动态条件（必填：自定义字段接口返回的结果）")
    private List<DynamicConditionDto> dtos;

    @ApiModelProperty(value = "选填：（多个逗号隔开）客户类型 0公海客户 1潜在客户 2成交客户")
    private String crmType;

    @ApiModelProperty(value = "选填：是否收藏")
    private Boolean isCollected;

    @ApiModelProperty(value = "用户ID,前端不传")
    private Integer userId;

    @ApiModelProperty(value = "选填：客户ID,（联系人、联系记录、商机使用）")
    private String customerIds;

    @ApiModelProperty(value = "选填：客户IDs,客户列表导出（导出功能使用）")
    private String[] crmIds;

    @ApiModelProperty(value = "选填：排序字段")
    private String sortField;

    @ApiModelProperty(value = "选填：排序类型： ascend descend")
    private String sortOrder;

    @ApiModelProperty(value = "选填：共享模块： linkMan(联系人) touch(类型记录) business（商机）")
    private String type = "";

    @ApiModelProperty(value = "选填：联系记录查询类型（跟进方式）1:会话沟通2:外勤签到")
    private Integer touchSearchType;

    @ApiModelProperty(value = "选填：往来属性（逗号隔开） 客户：isCustomer，供应商：isSupplier,其它：isOther 是否财务：isFinance")
    private String companyType;

    @ApiModelProperty(value = "选填：是否 关联业务员 ")
    private Boolean isGetSaleManId = false;

    @ApiModelProperty(value = "是否外呼任务执行中")
    private Boolean isNotTasking = false;

    @ApiModelProperty(value = "特殊业务类型 1.添加 外呼任务明细")
    private Integer joinBusinessType;

    @ApiModelProperty(value = "联合查询条件")
    private List<DynamicConditionDto> joinTableConditions;

    @ApiModelProperty(value = "外呼任务ID")
    private Integer taskId;

}
